import * as type from './type'

const mutations = {
    [type.CFLIST](state, action) {
        state.CFList = action.payload
    },
    [type.CSLIST](state, action) {
        state.CSList = action.payload
    },
    [type.WORDSLIST](state, action) {
        state.wordsList = action.payload
        state.searchWord = action.payload.data[0].searchWord
    }
}

export default mutations